﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AlbumDetail.ascx.cs" Inherits="AdminX_Gallery_AlbumDetail" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<div>
    <uc1:Alert ID="MessAlert1" runat="server" />
</div>
<table>
    <tr>
        <td>
            <div>
                <asp:Label ID="lblLanguage" runat="server" Text="Ngôn ngữ" CssClass="text" Font-Bold="true"
                    Width="90px"></asp:Label>
                <asp:DropDownList ID="ddlLanguage" runat="server" AutoPostBack="true" CssClass="boxnormal"
                    OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
                </asp:DropDownList>
            </div>
            <div>
                <asp:Label ID="lblTitle" runat="server" Width="90px" CssClass="text" Text="Tên Album"></asp:Label>
                <asp:TextBox ID="txtTitle" runat="server" CssClass="boxlonger" Width="500px" MaxLength="250"
                    ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
            </div>
            <div>
                <asp:Label ID="Label1" runat="server" Width="90px" CssClass="text" Text="Ảnh đại diện"></asp:Label>
                <input id="iptImage" runat="server" type="file" size="30" class="boxlongest" />
            </div>
            <div><span style="color: #000">Size: 248px x 135px</span></div>
        </td>
        <td style="padding-left: 40px; vertical-align: text-top">
            <asp:Image ID="imgImage" runat="server" Height="100px" BorderColor="gray" BorderWidth="1px" />
        </td>
    </tr>
</table>
<br />
<div style="width: 100%">
    <table id="tblGallery" runat="server">
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" CssClass="text" Text="ẢNH CHI TIẾT" Font-Bold="true"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="dtlGallery" runat="server" RepeatColumns="5" HorizontalAlign="Left"
                    OnItemDataBound="dtlGallery_ItemDataBound" OnItemCommand="dtlGallery_ItemCommand">
                    <ItemTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:Image ID="imgImage" runat="server" Width="160px" Height="100px" BorderColor="gray"
                                        BorderWidth="1px" />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: center">
                                    <asp:LinkButton ID="lnkDelete" runat="server" Text="Xóa" CommandName="Delete" CausesValidation="false"
                                        ForeColor="red"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
</div>
<div>
    <input id="iptFile1" runat="server" type="file" size="30" class="boxlongest" />
    <br />
    <input id="iptFile2" runat="server" type="file" size="30" class="boxlongest" /><br />
    <input id="iptFile3" runat="server" type="file" size="30" class="boxlongest" /><br />
    <input id="iptFile4" runat="server" type="file" size="30" class="boxlongest" /><br />
    <input id="iptFile5" runat="server" type="file" size="30" class="boxlongest" /><br />
    <span style="color: #cc0000"><em>(*Size tốt nhất 800x500px)<br />
        Xin vui lòng Resize ảnh trước khi upload để tối ưu tốc độ hiển thị. </em></span>
</div>
<br />
<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Lưu" Width="80px"
    ValidationGroup="Input" />
&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnCancel" runat="server" Text="Quay lại" Width="80px" OnClick="btnCancel_Click" />
<asp:RequiredFieldValidator ID="rfvTitle" runat="server" SetFocusOnError="true" ControlToValidate="txtTitle"
    Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server"
    ValidationGroup="Input" ShowSummary="False" />
